TARGET = ../binpsp/EBOOT.PBP
OBJS =	./obj/main.o\
		./obj/CInGameScene.o\
		./obj/CBaseScene.o\
		./obj/CGameSceneFactory.o\
		./obj/CStartScreenScene.o\

INCDIR =    ../irrpsp/include\
            ../irrpsp/include/game\
            ../irrpsp/include/game\actions\
            ../irrpsp/include/game\audio\
            ../irrpsp/include/game\core\
            ../irrpsp/include/game\io\
            ../irrpsp/include/game\net\
            ../irrpsp/include/game\video\
            ../irrpsp/include/game\scene\
            ../irrpsp/include/game\scene\loaders\
            ../irrpsp/include/core\
            ../irrpsp/include/gui\
            ../irrpsp/include/scene\
            ../irrpsp/include/video\
            ../irrpsp/include/io\
			./source/engine/scenes\
			../irrpsp/irr\

#CFLAGS = -G0  -O2
#CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
#ASFLAGS = $(CFLAGS)


CXXFLAGS	=	-O3	-G0 -fno-exceptions -fsingle-precision-constant -fomit-frame-pointer -ffast-math
CCFLAGS		=	$(CXXFLAGS) -DHAVE_CONFIG_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_ERRNO_H
CFLAGS		=	$(CCFLAGS)	-fno-rtti
ASFLAGS		=	-O3 -G0

BUILD_PRX = 1
PSP_FW_VERSION = 390
#PSP_LARGE_MEMORY = 1

LIBDIR = ../binpsp\
LDFLAGS =
LIBS= -lengine -lpspwlan -lglut -lGLU -lGL -lpspvfpu -lm -lstdc++ -lpsppower -lpsprtc -lpspaudio -lpspaudiocodec

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = grayland

PSPSDK=$(shell psp-config --pspsdk-path)
include ./irrBuild.mak

./obj/main.o : ./source/runner/main.cpp
	$(CXX) $(CCFLAGS) -c -o ./obj/main.o ./source/runner/main.cpp

./obj/CBaseScene.o : ./source/engine/scenes/CBaseScene.cpp
	$(CXX) $(CXXFLAGS) -c -o ./obj/CBaseScene.o ./source/engine/scenes/CBaseScene.cpp

./obj/CGameSceneFactory.o : ./source/engine/scenes/CGameSceneFactory.cpp
	$(CXX) $(CCFLAGS) -c -o ./obj/CGameSceneFactory.o ./source/engine/scenes/CGameSceneFactory.cpp

./obj/CInGameScene.o : ./source/engine/scenes/CInGameScene.cpp
	$(CXX) $(CXXFLAGS) -c -o ./obj/CInGameScene.o ./source/engine/scenes/CInGameScene.cpp

./obj/CStartScreenScene.o : ./source/engine/scenes/CStartScreenScene.cpp
	$(CXX) $(CXXFLAGS) -c -o ./obj/CStartScreenScene.o ./source/engine/scenes/CStartScreenScene.cpp

install:
	CMD /C MOVE  ./EBOOT.PBP ../binpsp/EBOOT.PBP 


